class Company {
    int company_id;
    String jwt_token;
    String name;
    List<Picture> pictures;

    Company({this.company_id, this.jwt_token, this.name, this.pictures});

    factory Company.fromJson(Map<String, dynamic> json) {
        return Company(
            company_id: json['company_id'],
            jwt_token: json['jwt_token'],
            name: json['name'],
            pictures: json['pictures'] != null ? (json['pictures'] as List).map((i) => Picture.fromJson(i)).toList() : null,
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['company_id'] = this.company_id;
        data['jwt_token'] = this.jwt_token;
        data['name'] = this.name;
        if (this.pictures != null) {
            data['pictures'] = this.pictures.map((v) => v.toJson()).toList();
        }
        return data;
    }
}

class Picture {
    String file;
    int id;

    Picture({this.file, this.id});

    factory Picture.fromJson(Map<String, dynamic> json) {
        return Picture(
            file: json['file'],
            id: json['id'],
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['file'] = this.file;
        data['id'] = this.id;
        return data;
    }
}